package com.test.esfiledemo.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class OaFile implements Serializable {

    private static final long serialVersionUID = 9126965954836831146L;

    /** 主键id */
    private String objectId;

    /** 真实文件名 */
    private String realName;

    /** 显示的文件名 */
    private String showName;

    /** 相对路径 */
    private String filePath;

    /** 文件大小 */
    private Long fileSize;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /** 文件页码 */
    private Integer pageNo;

    /** 区分使用指南里面的文件类型 */
    private  String fileCategory;

    /** 是否删除 */
    private Integer  deleteState;

    private Integer  sortNumber;

    private String  fileType;

    public String getObjectId() {
        return objectId;
    }

    public String getFilecontent() {
        return filecontent;
    }

    public void setFilecontent(String filecontent) {
        this.filecontent = filecontent;
    }

    public String filecontent;

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public String getFileCategory() {
        return fileCategory;
    }

    public void setFileCategory(String fileCategory) {
        this.fileCategory = fileCategory;
    }

    public Integer getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(Integer deleteState) {
        this.deleteState = deleteState;
    }


    public Integer getSortNumber() {
        return sortNumber;
    }

    public void setSortNumber(Integer sortNumber) {
        this.sortNumber = sortNumber;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    @Override
    public String toString() {
        return "OaFile{" +
                "objectId='" + objectId + '\'' +
                ", realName='" + realName + '\'' +
                ", showName='" + showName + '\'' +
                ", filePath='" + filePath + '\'' +
                ", fileSize=" + fileSize +
                ", createDate=" + createDate +
                ", pageNo=" + pageNo +
                ", fileCategory='" + fileCategory + '\'' +
                ", deleteState=" + deleteState +
                ", sortNumber=" + sortNumber +
                ", fileType=" + fileType +
                '}';
    }
}
